import Layout from '@/layout/index'

export default [
  {
    path: '/orderCenter',
    name: 'orderCenter',
    component: Layout,
    meta: { title: '订单中心', icon: 'menu-orderCenter', menuId: 102, showIndex: 2 },
    children: [
      {
        path: 'wechatOrderManage',
        name: 'wechatOrderManage',
        component: () => import('@/views/orderCenter/wechatOrderManage/index'),
        meta: { title: '微信订单管理', menuId: 10203, showIndex: 1 }
      },
      {
        path: 'orderManage',
        name: 'orderManage',
        component: () => import('@/views/orderCenter/orderManage/index'),
        meta: { title: '订单管理', menuId: 10207, showIndex: 2 }
      },
      {
        path: 'batchDispath',
        name: 'batchDispath',
        component: () => import('@/views/orderCenter/batchDispath/index'),
        meta: { title: '批量派单', menuId: 10219, showIndex: 3 }
      },
      {
        path: 'distractPlanManage',
        name: 'distractPlanManage',
        component: () => import('@/views/orderCenter/distractPlanManage/index'),
        meta: { title: '配送计划管理', menuId: 10213, showIndex: 4 }
      },
      {
        path: 'wholeSales',
        name: 'wholeSales',
        component: () => import('@/views/orderCenter/wholeSales/index'),
        meta: { title: '批发销售', menuId: 10216, showIndex: 5 }
      },
      {
        path: 'receiptManage',
        name: 'receiptManage',
        component: () => import('@/views/orderCenter/receiptManage/index'),
        meta: { title: '签收单管理', menuId: 20201, showIndex: 6 }
      },
      {
        path: 'backOrderManage',
        name: 'backOrderManage',
        component: () => import('@/views/orderCenter/backOrderManage/index'),
        meta: { title: '退单管理', menuId: 10204, showIndex: 7 }
      },
      {
        path: 'refundsManage',
        name: 'refundsManage',
        component: () => import('@/views/orderCenter/refundsManage/index'),
        meta: { title: '退货管理', menuId: 20309, showIndex: 8 }
      },
      {
        path: 'recoveryManage',
        name: 'recoveryManage',
        component: () => import('@/views/orderCenter/recoveryManage/index'),
        meta: { title: '回收管理', menuId: 20308, showIndex: 9 }
      }
    ]
  }
]
